package com.cy.mall.service.industrycode.impl;

import com.cy.mall.dao.mapper.industry.IndustryCodeMapper;
import com.cy.mall.model.domain.industry.IndustryCode;
import com.cy.mall.service.BaseService;
import com.cy.mall.service.industrycode.IndustryCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description IndustryCodeServiceImpl 国标行业代码服务
 * @Author tanyilin
 * @Date 2019/3/20 11:41
 */
@Service
public class IndustryCodeServiceImpl extends BaseService implements IndustryCodeService {

    @Autowired
    private IndustryCodeMapper industryCodeMapper;


    @Override
    public List<IndustryCode> selectIndustryCodeByParentId(Long parentId) {

        List<IndustryCode> list = industryCodeMapper.selectIndustryCodeByParentId(parentId);
        return list;
    }
}
